package observer_2.weather;

import observer_2.weather.observer.CurrentConditionsDisplay;
import observer_2.weather.subject.WeatherData;

/**
 * Created by zjh on 2017/9/19.
 */
public class WeatherStation {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
        weatherData.setMeasurements(80, 65, 30.4f);
        weatherData.setMeasurements(77, 55, 55.23f);
    }
}
